using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using AvaloniaApplication1.ViewModels;

namespace AvaloniaApplication1.Views
{
    public class TestColorPicker : Window
    {
        private TestColorPickerVM m_TestColorPickerVM = new TestColorPickerVM();

        public TestColorPicker()
        {
            this.DataContext = m_TestColorPickerVM;
            InitializeComponent();
            
#if DEBUG
#endif
        }

        private void InitializeComponent()
        {
            AvaloniaXamlLoader.Load(this);
        }

        private void Button_OnClick(object sender, RoutedEventArgs e)
        {
            this.Title = "";
            this.Title = m_TestColorPickerVM.SelectColor.ToString();
        }
    }
}
